package com.example.beat_x3.Client;

import java.io.BufferedOutputStream;
import java.io.ObjectInputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.util.ArrayList;

import Entity.Chat;
import Entity.Inf;

public class HandleChats {

    public static ArrayList<Chat> getResult(String recipient, String sender) {
        return (ArrayList<Chat>) Event.post("downloadChats\\" + recipient + "\\" + sender,9998);
    }

    public static int uploadChat(String recipient, String sender, String word) {
        return (int)Event.post("uploadChat\\" + recipient + "\\" + sender+"\\"+word,9998);
    }
    public static ArrayList<Chat> refresh(String recipient, String sender) {
        return (ArrayList<Chat>)Event.post("realTimeRefresh\\" + recipient + "\\" + sender,9999);
    }
}
